<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>aws-crt-cpp: /home/ANT.AMAZON.COM/dengket/doc/aws-crt-cpp/include/aws/crt/io/TlsOptions.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">aws-crt-cpp
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_076842b242c291358044feb169933571.html">aws</a></li><li class="navelem"><a class="el" href="dir_cc4322e4b2151c90adb7cd2e3f54423a.html">crt</a></li><li class="navelem"><a class="el" href="dir_b90b4e231cf9df4b6b8451850277e486.html">io</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">TlsOptions.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="TlsOptions_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;).</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * You may not use this file except in compliance with the License.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * A copy of the License is located at</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *  http://aws.amazon.com/apache2.0</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * or in the &quot;license&quot; file accompanying this file. This file is distributed</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * express or implied. See the License for the specific language governing</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * permissions and limitations under the License.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="Types_8h.html">aws/crt/Types.h</a>&gt;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;aws/io/tls_channel_handler.h&gt;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">struct </span>aws_tls_ctx_options;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceAws.html">Aws</a></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;{</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <span class="keyword">namespace </span>Crt</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    {</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        <span class="keyword">namespace </span>Io</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;        {</div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt_1_1Io.html#a0e6e89d764e66080a9abd0513079d1b8">   29</a></span>&#160;            <span class="keyword">enum class</span> <a class="code" href="namespaceAws_1_1Crt_1_1Io.html#a0e6e89d764e66080a9abd0513079d1b8">TlsMode</a></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;            {</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;                <a class="code" href="namespaceAws_1_1Crt_1_1Io.html#a0e6e89d764e66080a9abd0513079d1b8aef10c650df47bffd6399e5e78da2a9b1">CLIENT</a>,</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;                <a class="code" href="namespaceAws_1_1Crt_1_1Io.html#a0e6e89d764e66080a9abd0513079d1b8a3d27c95bfdbea691b250894d96852844">SERVER</a>,</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;            };</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">   35</a></span>&#160;            <span class="keyword">class </span><a class="code" href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a> <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> final</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;            {</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a1d7d91d71900833f4fa7d85bc6aacbbc">   37</a></span>&#160;                <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html">TlsContext</a>;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;              <span class="keyword">public</span>:</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;                <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a>() noexcept;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;                ~<a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a>();</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a330f19bf744a5f119c03771135ae84e7">   42</a></span>&#160;                <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a>(const <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> &amp;) noexcept = delete;</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a60e81d2aca949567aa3031956e2a6da6">   43</a></span>&#160;                <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> &amp;operator=(const <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> &amp;) noexcept = delete;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;                <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a>(<a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> &amp;&amp;) noexcept;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;                <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> &amp;operator=(<a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> &amp;&amp;) noexcept;</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a941099713f68de668e8f366af9946c71">   49</a></span>&#160;                explicit operator <span class="keywordtype">bool</span>() const noexcept { <span class="keywordflow">return</span> m_isInit; }</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#ad9cd96f33ba5c3f1333d5ece85b8062d">   53</a></span>&#160;                <span class="keywordtype">int</span> <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#ad9cd96f33ba5c3f1333d5ece85b8062d">LastError</a>() const noexcept { <span class="keywordflow">return</span> aws_last_error(); }</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;                <span class="keyword">static</span> <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> InitDefaultClient(<a class="code" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *allocator = <a class="code" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">g_allocator</a>) noexcept;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;                <span class="keyword">static</span> <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> InitClientWithMtls(</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;                    <span class="keyword">const</span> <span class="keywordtype">char</span> *cert_path,</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;                    <span class="keyword">const</span> <span class="keywordtype">char</span> *pkey_path,</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;                    <a class="code" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *allocator = <a class="code" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">g_allocator</a>) noexcept;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                <span class="keyword">static</span> <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> InitClientWithMtls(</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;                    <span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">ByteCursor</a> &amp;cert,</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;                    <span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">ByteCursor</a> &amp;pkey,</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;                    <a class="code" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *allocator = <a class="code" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">g_allocator</a>) noexcept;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">#ifdef __APPLE__</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;                <span class="keyword">static</span> <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> InitClientWithMtlsPkcs12(</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;                    <span class="keyword">const</span> <span class="keywordtype">char</span> *pkcs12_path,</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;                    <span class="keyword">const</span> <span class="keywordtype">char</span> *pkcs12_pwd,</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;                    <a class="code" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *allocator = <a class="code" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">g_allocator</a>) noexcept;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;                <span class="keyword">static</span> <span class="keywordtype">bool</span> IsAlpnSupported() noexcept;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;                <span class="keywordtype">bool</span> SetAlpnList(const <span class="keywordtype">char</span> *alpnList) noexcept;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;                <span class="keywordtype">void</span> SetVerifyPeer(<span class="keywordtype">bool</span> verifyPeer) noexcept;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160; </div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;                <span class="keywordtype">bool</span> OverrideDefaultTrustStore(const <span class="keywordtype">char</span> *caPath, const <span class="keywordtype">char</span> *caFile) noexcept;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;                <span class="keywordtype">bool</span> OverrideDefaultTrustStore(const <a class="code" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">ByteCursor</a> &amp;ca) noexcept;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160; </div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;              private:</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;                aws_tls_ctx_options m_options;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;                <span class="keywordtype">bool</span> m_isInit;</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;            };</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html">  146</a></span>&#160;            class <a class="code" href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a> <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html">TlsConnectionOptions</a> final</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;            {</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;              <span class="keyword">public</span>:</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;                <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html">TlsConnectionOptions</a>() noexcept;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;                ~<a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html">TlsConnectionOptions</a>();</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;                <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html">TlsConnectionOptions</a>(<span class="keyword">const</span> <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html">TlsConnectionOptions</a> &amp;) noexcept;</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;                <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html">TlsConnectionOptions</a> &amp;operator=(<span class="keyword">const</span> <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html">TlsConnectionOptions</a> &amp;) noexcept;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;                <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html">TlsConnectionOptions</a>(<a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html">TlsConnectionOptions</a> &amp;&amp;options) noexcept;</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;                <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html">TlsConnectionOptions</a> &amp;operator=(<a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html">TlsConnectionOptions</a> &amp;&amp;options) noexcept;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160; </div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;                <span class="keywordtype">bool</span> SetServerName(<a class="code" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">ByteCursor</a> &amp;serverName) noexcept;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160; </div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;                <span class="keywordtype">bool</span> SetAlpnList(<span class="keyword">const</span> <span class="keywordtype">char</span> *alpnList) noexcept;</div>
<div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html#ab122c682c9edc330acd6cc26b952c16a">  173</a></span>&#160;                <span class="keyword">explicit</span> <span class="keyword">operator</span> bool() const noexcept { <span class="keywordflow">return</span> m_isInit; }</div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html#acf31a07e1dd85b5e28b9fbc7458d8d64">  177</a></span>&#160;                <span class="keywordtype">int</span> <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html#acf31a07e1dd85b5e28b9fbc7458d8d64">LastError</a>() const noexcept { <span class="keywordflow">return</span> m_lastError; }</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;                <span class="keyword">const</span> aws_tls_connection_options *GetUnderlyingHandle() const noexcept</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;                {</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;                    <span class="keywordflow">return</span> &amp;m_tls_connection_options;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;                }</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160; </div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;              <span class="keyword">private</span>:</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;                TlsConnectionOptions(aws_tls_ctx *ctx, <a class="code" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *allocator) noexcept;</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;                aws_tls_connection_options m_tls_connection_options;</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;                aws_allocator *m_allocator;</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;                <span class="keywordtype">int</span> m_lastError;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;                <span class="keywordtype">bool</span> m_isInit;</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160; </div>
<div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html#a1d7d91d71900833f4fa7d85bc6aacbbc">  191</a></span>&#160;                <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html">TlsContext</a>;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;            };</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160; </div>
<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html">  194</a></span>&#160;            <span class="keyword">class </span><a class="code" href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a> <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html">TlsContext</a> final</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;            {</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;              <span class="keyword">public</span>:</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;                <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html">TlsContext</a>() noexcept;</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;                <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html">TlsContext</a>(<a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> &amp;options, <a class="code" href="namespaceAws_1_1Crt_1_1Io.html#a0e6e89d764e66080a9abd0513079d1b8">TlsMode</a> mode, <a class="code" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *allocator = <a class="code" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">g_allocator</a>) noexcept;</div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html#a78edf7b804187cc05a594db4a577050b">  199</a></span>&#160;                <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html#a78edf7b804187cc05a594db4a577050b">~TlsContext</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html#affec6fc99388b77764586ff797bc51c7">  200</a></span>&#160;                <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html#affec6fc99388b77764586ff797bc51c7">TlsContext</a>(<span class="keyword">const</span> <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html">TlsContext</a> &amp;) noexcept = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html#adc14c6b5e766f2bbe96470afe1757c5a">  201</a></span>&#160;                <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html">TlsContext</a> &amp;<a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html#adc14c6b5e766f2bbe96470afe1757c5a">operator=</a>(<span class="keyword">const</span> <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html">TlsContext</a> &amp;) noexcept = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html#a39a97f44600ec3b629542ef563ef000c">  202</a></span>&#160;                <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html#a39a97f44600ec3b629542ef563ef000c">TlsContext</a>(<a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html">TlsContext</a> &amp;&amp;) noexcept = default;</div>
<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html#a3679336d74e787c14da09a03627d1df8">  203</a></span>&#160;                <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html">TlsContext</a> &amp;operator=(<a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html">TlsContext</a> &amp;&amp;) noexcept = default;</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160; </div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;                <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html">TlsConnectionOptions</a> NewConnectionOptions() const noexcept;</div>
<div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html#aaec6953cf4499ebe15cf0bbaa9c4c0c3">  209</a></span>&#160;                explicit operator <span class="keywordtype">bool</span>() const noexcept { <span class="keywordflow">return</span> m_ctx &amp;&amp; m_initializationError == AWS_ERROR_SUCCESS; }</div>
<div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html#a79dbd7c5a40df71d8d16bc3deed52841">  213</a></span>&#160;                <span class="keywordtype">int</span> <a class="code" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html#a79dbd7c5a40df71d8d16bc3deed52841">GetInitializationError</a>() const noexcept { <span class="keywordflow">return</span> m_initializationError; }</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160; </div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;              <span class="keyword">private</span>:</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;                std::shared_ptr&lt;aws_tls_ctx&gt; m_ctx;</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;                <span class="keywordtype">int</span> m_initializationError;</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;            };</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160; </div>
<div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt_1_1Io.html#a17604ecd6ea435342b446170f0699ca8">  220</a></span>&#160;            <a class="code" href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a> <span class="keywordtype">void</span> <a class="code" href="namespaceAws_1_1Crt_1_1Io.html#a17604ecd6ea435342b446170f0699ca8">InitTlsStaticState</a>(<a class="code" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *alloc) noexcept;</div>
<div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt_1_1Io.html#ad195bbd0910a895e419d14f8264327a2">  221</a></span>&#160;            <a class="code" href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a> <span class="keywordtype">void</span> <a class="code" href="namespaceAws_1_1Crt_1_1Io.html#ad195bbd0910a895e419d14f8264327a2">CleanUpTlsStaticState</a>() noexcept;</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160; </div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;        } <span class="comment">// namespace Io</span></div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    }     <span class="comment">// namespace Crt</span></div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;} <span class="comment">// namespace Aws</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="anamespaceAws_1_1Crt_html_a3c9efb213e2de565038afcfd4f8afcda"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Aws::Crt::Allocator</a></div><div class="ttdeci">aws_allocator Allocator</div><div class="ttdef"><b>Definition:</b> StlAllocator.h:25</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_1_1Io_html_a0e6e89d764e66080a9abd0513079d1b8a3d27c95bfdbea691b250894d96852844"><div class="ttname"><a href="namespaceAws_1_1Crt_1_1Io.html#a0e6e89d764e66080a9abd0513079d1b8a3d27c95bfdbea691b250894d96852844">Aws::Crt::Io::TlsMode::SERVER</a></div><div class="ttdeci">@ SERVER</div></div>
<div class="ttc" id="aTypes_8h_html"><div class="ttname"><a href="Types_8h.html">Types.h</a></div></div>
<div class="ttc" id="aExports_8h_html_a0a3f6c46aee6b588ce99a142cdb22d1d"><div class="ttname"><a href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a></div><div class="ttdeci">#define AWS_CRT_CPP_API</div><div class="ttdef"><b>Definition:</b> Exports.h:34</div></div>
<div class="ttc" id="aclassAws_1_1Crt_1_1Io_1_1TlsContext_html_a78edf7b804187cc05a594db4a577050b"><div class="ttname"><a href="classAws_1_1Crt_1_1Io_1_1TlsContext.html#a78edf7b804187cc05a594db4a577050b">Aws::Crt::Io::TlsContext::~TlsContext</a></div><div class="ttdeci">~TlsContext()=default</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_1_1Io_html_a0e6e89d764e66080a9abd0513079d1b8"><div class="ttname"><a href="namespaceAws_1_1Crt_1_1Io.html#a0e6e89d764e66080a9abd0513079d1b8">Aws::Crt::Io::TlsMode</a></div><div class="ttdeci">TlsMode</div><div class="ttdef"><b>Definition:</b> TlsOptions.h:30</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a14ac076b0baa520bccb2b7236e4e78b7"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">Aws::Crt::ByteCursor</a></div><div class="ttdeci">aws_byte_cursor ByteCursor</div><div class="ttdef"><b>Definition:</b> Types.h:44</div></div>
<div class="ttc" id="aclassAws_1_1Crt_1_1Io_1_1TlsConnectionOptions_html_acf31a07e1dd85b5e28b9fbc7458d8d64"><div class="ttname"><a href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html#acf31a07e1dd85b5e28b9fbc7458d8d64">Aws::Crt::Io::TlsConnectionOptions::LastError</a></div><div class="ttdeci">int LastError() const noexcept</div><div class="ttdef"><b>Definition:</b> TlsOptions.h:177</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a7178ef65f261a8db52a624458331bbb2"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">Aws::Crt::g_allocator</a></div><div class="ttdeci">Allocator * g_allocator</div><div class="ttdef"><b>Definition:</b> Api.cpp:28</div></div>
<div class="ttc" id="aclassAws_1_1Crt_1_1Io_1_1TlsContext_html_adc14c6b5e766f2bbe96470afe1757c5a"><div class="ttname"><a href="classAws_1_1Crt_1_1Io_1_1TlsContext.html#adc14c6b5e766f2bbe96470afe1757c5a">Aws::Crt::Io::TlsContext::operator=</a></div><div class="ttdeci">TlsContext &amp; operator=(const TlsContext &amp;) noexcept=default</div></div>
<div class="ttc" id="aclassAws_1_1Crt_1_1Io_1_1TlsContext_html_a39a97f44600ec3b629542ef563ef000c"><div class="ttname"><a href="classAws_1_1Crt_1_1Io_1_1TlsContext.html#a39a97f44600ec3b629542ef563ef000c">Aws::Crt::Io::TlsContext::TlsContext</a></div><div class="ttdeci">TlsContext(TlsContext &amp;&amp;) noexcept=default</div></div>
<div class="ttc" id="aclassAws_1_1Crt_1_1Io_1_1TlsContextOptions_html_ad9cd96f33ba5c3f1333d5ece85b8062d"><div class="ttname"><a href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#ad9cd96f33ba5c3f1333d5ece85b8062d">Aws::Crt::Io::TlsContextOptions::LastError</a></div><div class="ttdeci">int LastError() const noexcept</div><div class="ttdef"><b>Definition:</b> TlsOptions.h:53</div></div>
<div class="ttc" id="anamespaceAws_html"><div class="ttname"><a href="namespaceAws.html">Aws</a></div><div class="ttdef"><b>Definition:</b> Api.h:25</div></div>
<div class="ttc" id="aclassAws_1_1Crt_1_1Io_1_1TlsContext_html"><div class="ttname"><a href="classAws_1_1Crt_1_1Io_1_1TlsContext.html">Aws::Crt::Io::TlsContext</a></div><div class="ttdef"><b>Definition:</b> TlsOptions.h:195</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_1_1Io_html_a17604ecd6ea435342b446170f0699ca8"><div class="ttname"><a href="namespaceAws_1_1Crt_1_1Io.html#a17604ecd6ea435342b446170f0699ca8">Aws::Crt::Io::InitTlsStaticState</a></div><div class="ttdeci">AWS_CRT_CPP_API void InitTlsStaticState(Allocator *alloc) noexcept</div></div>
<div class="ttc" id="aclassAws_1_1Crt_1_1Io_1_1TlsContext_html_affec6fc99388b77764586ff797bc51c7"><div class="ttname"><a href="classAws_1_1Crt_1_1Io_1_1TlsContext.html#affec6fc99388b77764586ff797bc51c7">Aws::Crt::Io::TlsContext::TlsContext</a></div><div class="ttdeci">TlsContext(const TlsContext &amp;) noexcept=default</div></div>
<div class="ttc" id="aclassAws_1_1Crt_1_1Io_1_1TlsConnectionOptions_html"><div class="ttname"><a href="classAws_1_1Crt_1_1Io_1_1TlsConnectionOptions.html">Aws::Crt::Io::TlsConnectionOptions</a></div><div class="ttdef"><b>Definition:</b> TlsOptions.h:147</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_1_1Io_html_a0e6e89d764e66080a9abd0513079d1b8aef10c650df47bffd6399e5e78da2a9b1"><div class="ttname"><a href="namespaceAws_1_1Crt_1_1Io.html#a0e6e89d764e66080a9abd0513079d1b8aef10c650df47bffd6399e5e78da2a9b1">Aws::Crt::Io::TlsMode::CLIENT</a></div><div class="ttdeci">@ CLIENT</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_1_1Io_html_ad195bbd0910a895e419d14f8264327a2"><div class="ttname"><a href="namespaceAws_1_1Crt_1_1Io.html#ad195bbd0910a895e419d14f8264327a2">Aws::Crt::Io::CleanUpTlsStaticState</a></div><div class="ttdeci">AWS_CRT_CPP_API void CleanUpTlsStaticState() noexcept</div></div>
<div class="ttc" id="aclassAws_1_1Crt_1_1Io_1_1TlsContextOptions_html"><div class="ttname"><a href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">Aws::Crt::Io::TlsContextOptions</a></div><div class="ttdef"><b>Definition:</b> TlsOptions.h:36</div></div>
<div class="ttc" id="aclassAws_1_1Crt_1_1Io_1_1TlsContext_html_a79dbd7c5a40df71d8d16bc3deed52841"><div class="ttname"><a href="classAws_1_1Crt_1_1Io_1_1TlsContext.html#a79dbd7c5a40df71d8d16bc3deed52841">Aws::Crt::Io::TlsContext::GetInitializationError</a></div><div class="ttdeci">int GetInitializationError() const noexcept</div><div class="ttdef"><b>Definition:</b> TlsOptions.h:213</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
